let express = require('express')
let router = express.Router()

let { navList, search } = require("./API/navList")
router.get('/user/navList', navList)// 导航列表
router.post('/user/search', search)// 搜索功能

let { videoList, rankingList, acgxq } = require("./API/videoList")
router.get('/user/videoList', videoList)//图片列表
router.post('/user/rankingList', rankingList)//排行榜
router.post('/user/acgxq', acgxq)//动漫详情页路由跳转

let { login, isLogin, zhuce } = require("./API/login.js")
router.post('/user/login', login)//登录功能
router.get('/user/islogin', isLogin)//验证登录功能
router.post('/user/zhuce', zhuce)//注册功能

module.exports = router